package com.neteast.androidclient.newscenter.test;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import com.neteast.androidclient.newscenter.domain.Information;

public class InfoGenerator {
	
	private static Random r=new Random();
	
	public static Information next() {
		Information info=new Information();
		info.infoId=r.nextLong();
		info.infoTypeId=1;
		info.sendTime=System.currentTimeMillis()+r.nextInt(10000);
		info.textContent="hello <come here>";
		return info;
	}
	
	public static List<Information> list(int size) {
		List<Information> list=new ArrayList<Information>();
		int i=0;
		while (i++<size) {
			list.add(next());
		}
		return list;
	}
}
